package cn.sumpu.app.guoguojie.constant;

import java.util.HashMap;
import java.util.Map;


public enum PictorialType {
	SHARE("01", "晒货"), SHOTS("02", "街拍"), SPROUT("03", "萌物"), FOODS("04", "美食"),LIFE("05","生活"), OTHER(
			"06", "其他");
	private String value;
	private String label;
	
	private static Map<String,String> cache;
	static {
		cache = new HashMap<String,String>();
		cache.put(SHARE.getValue(), SHARE.getLabel());
		cache.put(SHOTS.getValue(), SHOTS.getLabel());
		cache.put(SPROUT.getValue(), SPROUT.getLabel());
		cache.put(FOODS.getValue(), FOODS.getLabel());
		cache.put(LIFE.getValue(), LIFE.getLabel());
		cache.put(OTHER.getValue(), OTHER.getLabel());
	}
	

	private PictorialType(String value, String label) {
		this.value = value;
		this.label = label;
	}

	public String getValue() {
		return value;
	}

	public String getLabel() {
		return label;
	}
	public static String getLabelByValue(String value) {
		return cache.get(value);
	}
	
}
